package edu.washington.tcss360.burningpenguins.data;

/**
 * A class to represent the Paper table in the DB.
 * 
 * @author Chris Gelatt
 * @version 1.0
 * @since 2013-11-13
 *
 */
public class Paper extends DataObject
{
	public static Integer IN_REVIEW = 0;
	public static Integer REJECTED = 1;
	public static Integer ACCEPTED = 2;
	
	private Integer id;
	private Integer userId;
	private Integer conferenceId;
	private String title;
	private String paperAbstract;
	private String paperFilePath;
	private Integer paperAcceptanceStatus;
	
	public Paper()
	{
		super();
	}
	
	public Paper(Integer userId, Integer conferenceId, String title, String paperAbstract, String paperFilePath)
	{
		super();
		setId(0);
		setUserId(userId);
		setConferenceId(conferenceId);
		setTitle(title);
		setPaperAbstract(paperAbstract);
		setPaperFilePath(paperFilePath);
		setPaperAcceptanceStatus(IN_REVIEW);
	}
	
	public Integer getId()
	{
		return id;
	}
	
	public void setId(Integer id)
	{
		this.id = id;
	}

	public Integer getUserId()
	{
		return userId;
	}
	
	public void setUserId(Integer userId)
	{
		this.userId = userId;
	}

	public Integer getConferenceId()
	{
		return conferenceId;
	}
	
	public void setConferenceId(Integer conferenceId)
	{
		this.conferenceId = conferenceId;
	}

	public String getTitle()
	{
		return title;
	}
	
	public void setTitle(String title)
	{
		this.title = title;
	}
	
	public String getPaperAbstract()
	{
		return paperAbstract;
	}
	
	public void setPaperAbstract(String paperAbstract)
	{
		this.paperAbstract = paperAbstract;
	}
	
	public String getPaperFilePath()
	{
		return paperFilePath;
	}
	
	public void setPaperFilePath(String paperFilePath)
	{
		this.paperFilePath = paperFilePath;
	}
	
	public Integer getPaperAcceptanceStatus()
	{
		return paperAcceptanceStatus;
	}
	
	public void setPaperAcceptanceStatus(Integer paperAcceptanceStatus)
	{
		this.paperAcceptanceStatus = paperAcceptanceStatus;
	}
}
